package com.zhang.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhang.entity.User;
import com.zhang.vo.UserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author Zhang
 * @since 2022-03-02
 */
public interface UserMapper extends BaseMapper<User> {
    /**
     * 功能描述: <br>
     * 〈分页查询〉
     * @Param: [page, userVO]
     * @Return: java.util.List<com.zhang.entity.User>
     * @Author: Mr.zhang
     * @Date: 2022/3/4 10:52
     */
    List<UserVO> findUserPage(@Param("page") Page<UserVO> page, @Param("userVO")UserVO userVO);

    int modifyStatus(@Param("id")Long id);

//    User loadUserByUsername(@Param("username") String username);
}
